package la.iok.hzsvn.lewin.movie.service;

import la.iok.hzsvn.lewin.movie.entity.PlayRoleBookImage;
import la.iok.hzsvn.lewin.mybatis.service.BaseService;
import la.iok.hzsvn.share.annotations.NotNull;
import la.iok.hzsvn.share.annotations.NullElement;
import la.iok.hzsvn.share.annotations.Nullable;

import javax.servlet.http.HttpServletResponse;
import java.util.Collection;

public interface PlayRoleBookImageService extends BaseService<PlayRoleBookImage,Long> {
    Long save(@NotNull Long playRoleBookInstanceId, @NotNull Long fileId, @NotNull String filePath);

    @Nullable
    String digest(@Nullable Long id);

    void downloadFile(@NotNull HttpServletResponse response, @NotNull Long id);

    String storePath(Long id);

    /**
     * 标记删除
     * @param ids id集合
     */
    void markFileDeleted(@Nullable @NullElement Collection<Long> ids);
}
